<?php
include_once ($_SERVER["DOCUMENT_ROOT"]."/CTAN/models/NhomNhac.php");
$nhomnhac= new NhomNhac();
$result = $nhomnhac->danhSachNhom();
//$danhsachnhom;
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
    $danhsachnhom[] = array(
        'ma_nhom' => $row['ma_nhom'],
        'ten_nhom' => $row['ten_nhom'],
        'ngay_thanh_lap' => $row['ngay_thanh_lap'],
        'thong_tin' => $row['thong_tin'],
        'luot_like' => $row['luot_like']
    );
}
$nhomnhac->closeConnection();
echo json_encode($danhsachnhom, JSON_UNESCAPED_UNICODE);
?>
